package top.kaoshanji.p1ch01a;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 * 代码清单 p1ch01a-01：在switch语句中使用字符串(1.2节、反编译一下)
 * author kaoshanji
 * ^_^
 * create time 2024/12/16 17:57
 */
public class StringInSwitchMain {

    private static final Logger logger = LogManager.getLogger(StringInSwitchMain.class);

    public static void main(String[] args) {
        logger.info("...代码清单 p1ch01a-01：在switch语句中使用字符串(1.2节、反编译一下)...");

        Title salutation = new Title();

        System.out.println(salutation.generate("张三", "男"));
        System.out.println(salutation.generate("李四", "女"));
        System.out.println(salutation.generate("王五", "未知"));
        System.out.println(salutation.generate("赵六", null));

    }

}
